Visual Basic program "VB Gal 2D" - Description and operation

Introduction and Purpose

The purpose of this program is to simulate a Galaxy in 2D with Visual Basic 5.0 The Visual Basic Program "VB Gal 2D" is base around the question: Stable Galaxy - What is involved
For all the technical details about the simulation select: Program "Gal 2D.bas": Galaxy Simulation in 2D
To download an executable select: VB Gal 2D.zip
It is possible that you need the file: Msvdvm50.dll Select: Msvdvm50.dll.zip
For more information go to: Implementation details


Description

The Visual basic program program "VB Gal 2D" consits of 3 Forms (or displays):


Operation - Form1 Control

Operation of the program is done from the Control Form.
Picture 1A
Picture 1A Shows the initial display.
This dispay shows 2 Commands: Start and End The display shows 6 Parameters which can be selected: # ring,# star, methode , v , # steps and B Hole

As an operator the first thing you have to do is to modify the parameters and than to select the Start command.

Picture 1B
Picture 1B Shows the display after selecting the Start command
New is the Message: Perform Simulation Yes Repeat
When you select Yes the simulation starts.
New is also the parameter tot star which should be smaller or equal than 1000
When the parameter is larger than 1000 you get the message:
Perform Simulation No Repeat
After Selecting the No message the message changes to Yes

When you start the simulation the initial values of all the stars are calculated. That means the mass of each star and the position (X,y) and speed of each star (Vx,Vy). This explains the above procedure.

In order to understand the Repeat function you have to read: Program 14 Evaluation which describes the Q Basic implemetation of the same program. It is even better to start with paragraph Technical Data

Picture 1C
Picture 1D
Picture 1C Shows the display after selecting the Yes Message and the simulation starts
New is the Stop Command. When this command is selected the simulation Stops. See Below.
New is the parameter Sun which shows a ring number and which indicates approximate the position of the Sun compared to the total size of the disc.
The evolution of the simulation is shown on the Display Form. See below.
The evolution of the simulation in a table form is shown on Print Form - part 2 See below.

Picture 1D Shows the display after selecting the Start command.


Form2 Display

This Form shows the result of the simulation.
Picture 2A
Picture 2B


Form3 Print - Part 1

This Form shows the result of the simulation.
Picture 3A
Picture 3B


Form3 Print - Part 2

Picture 4A
Picture 4B


Reflection


Feedback

None


Original 21 July 2013
Updated 19 Februari 2016

Back to my home page: Contents of This Document